html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

:root {
  --black: #000;
  --bright-black: #333;
  --gray: #666;
  --bright-gray: #999;
  --pink: #D1A9F0;
  --dark-pink: #C283F3;
  --purple: #9D5CD0;
  --dark-purple: #7943A4;
  --bright-gray-more: #CACACA;
  --white: #fff;
}

@font-face {
  font-family: 'OpenSans';
  src: local("OpenSans-Regular"),
    url("../fonts/OpenSansRegular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OpenSans';
  src: local("OpenSans-SemiBold"),
    url("../fonts/OpenSansSemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OpenSans';
  src: local("OpenSans-Bold"),
    url("../fonts/OpenSans-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, p {
  margin: 0;
}

img {
  max-width: 100%;
}

body {
  min-width: 320px;
  font-family: 'OpenSans', sans-serif;
}


.list-reset {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bttn-reset {
  padding: 0;
  border: none;
  background-color: transparent;
  cursor: pointer;
}

.flex {
  display: flex;
}

.container {
  max-width: 1700px;
  padding: 0 50px;
  margin: 0 auto;
  width: 100%;
}


/* Header */

.header {
  background: var(--black);
  height: 100px;
  align-items: center;
}

.header__logo {
  width: 173px;
  height: 39.9px;
  margin-right: 173px;
  flex-shrink: 0;
}

.nav {
  margin-right: auto;
  padding-top: 7px;
}

.nav__item:not(:last-child) {
  margin-right: 86.3px;
}

.nav__link {
  font-size: 18px;
  font-weight: 600;
  line-height: 24.51px;
  text-align: center;
  color: var(--white);
  padding: 5px;
  transition: color .3s, background-color 0.3s;
}

.nav__link:focus {
  background-color: var(--dark-purple);
}

.nav__link:hover {
  color: var(--dark-pink);
}

.nav__link:active {
  color: var(--dark-purple);
  background-color: transparent;
}

.header__search {
  fill: var(--white);
  transition: fill .3s, background-color 0.3s;
}

.header__search:focus {
  background-color: var(--dark-purple);
}

.header__search:hover {
  fill: var(--dark-pink);
}

.header__search:active {
  fill: var(--purple);
  background-color: transparent;
}

/* Hero */

.hero {
  background-image: url(../img/hero-back-xl.jpg);
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero__inf {
  width: 555px;
  padding-top: 146px;
  padding-bottom: 146px;
}

.hero__title {
  font-size: 72px;
  font-weight: 700;
  line-height: 68px;
  text-align: left;
  color: var(--white);
  margin-bottom: 20px;
}

.hero__descr {
  font-size: 18px;
  font-weight: 700;
  line-height: 30px;
  text-align: left;
  color: var(--white);
  margin-bottom: 92px;
}

.hero__btn {
  background: var(--purple);
  padding: 22.5px 35px;
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  line-height: 24.51px;
  text-align: center;
  border-radius: 100px;
  transition: outline-color .3s, background-color 0.3s;
}

.hero__btn:focus {
  outline-offset: 3px;
  outline: 2px solid var(--dark-pink);
}

.hero__btn:hover {
  outline: 3px solid var(--pink);
}

.hero__btn:active {
  background: var(--dark-purple);
  outline: 3px solid var(--pink);
  outline-offset: 0;
}

/* О нас */

.abus {
  padding-top: 80px;
  padding-bottom: 70px;
}

.abus__title {
  font-size: 48px;
  font-weight: 400;
  line-height: 65.37px;
  text-align: left;
  color: var(--bright-black);
  margin-bottom: 16px;
}

.abus__descr {
  font-size: 16px;
  font-weight: 400;
  line-height: 32px;
  text-align: left;
  color: var(--bright-black);
  max-width: 1050px;

}

/* Галерея */

.gallery {
  padding-top: 80px;
  padding-bottom: 80px;
  background-image: url(../img/gallery-back-color.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
}

.gallery__main {
  flex-direction: column;
  justify-content: space-between;
  margin-right: auto;
}

.gallery__title {
  font-size: 48px;
  font-weight: 400;
  line-height: 65.37px;
  text-align: left;
  color: var(--white);
}

.gallery__form {
  display: flex;
  flex-direction: column;
}

.gallery__wraper {
  user-select: none;
  cursor: pointer;
}

.gallery__radio {
  appearance: none;
}

.gallery__text {
  font-size: 16px;
  font-weight: 400;
  line-height: 32px;
  text-align: left;
  color: var(--white);
  position: relative;
  padding-left: 24px;
  transition: color 0.3s;
}

.gallery__text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border: 1px solid var(--white);
  transition: border-color 0.3s;
}

.gallery__text::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background-image: url(../img/checked.svg);
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery__radio:checked + .gallery__text::after {
  opacity: 1;
}

.gallery__radio:checked + .gallery__text::before {
  border: 1px solid var(--dark-pink);
}

.gallery__radio:focus + .gallery__text::before  {
  border: 1px solid var(--dark-pink);
}

.gallery__radio:focus + .gallery__text  {
  color: var(--dark-pink)  ;
}

.gallery__radio:hover + .gallery__text::before  {
  border: 1px solid var(--dark-pink);
}

.gallery__radio:active + .gallery__text::before  {
  border: 1px solid var(--dark-pink);
}

.gallery__radio:active + .gallery__text  {
  color: var(--dark-pink)  ;
}


.gallery__pics{
  padding-top: 85px;
}

.gallery__pic {
  max-width: 350px;
  max-height: 350px;
  flex-shrink: 0;
}

.gallery__pic:not(:last-child) {
  margin-right: 50px;
}

/* Каталог */

.cat {
  padding-top: 80px;
}

.cat__title {
  font-size: 48px;
  font-weight: 400;
  line-height: 65.37px;
  text-align: left;
  color: var(--bright-black);
  margin-bottom: 16px;
}

.cat__item:not(:last-child) {
  margin-bottom: 50px;
}

.cat__descr {
  font-size: 16px;
  font-weight: 400;
  line-height: 32px;
  text-align: left;
  color: var(--bright-black);
  max-width: 1080px;
  margin-bottom: 39px;
}

.cat__pic {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  width: 750px;
  height: 470px;
  flex-shrink: 0;
  margin-right: 50px;
}

.cat__pic_1 {
  background-image: url(../img/cat1.jpg);
}

.cat__pic_2 {
  background-image: url(../img/cat2.jpg);
}

.cat__pic_3 {
  background-image: url(../img/cat3.jpg);
}

.cat__info {
  flex-direction: column;
  justify-content: center;
  max-width: 800px;
}

.cat__name {
  font-size: 24px;
  font-weight: 600;
  line-height: 32.68px;
  text-align: left;
  color: var(--bright-black);
  margin-bottom: 10px;
}

.cat__date {
  font-size: 12px;
  font-weight: 400;
  line-height: 16.34px;
  text-align: left;
  color: var(--bright-gray);
  margin-bottom: 10px;
}

.cat__text {
  font-size: 16px;
  font-weight: 400;
  line-height: 32px;
  text-align: left;
  color: var(--bright-black);
}

/* События */

.sob {
  padding-top: 80px;
}

.sob__title {
  font-size: 48px;
  font-weight: 400;
  line-height: 65.37px;
  text-align: left;
  color: var(--bright-black);
  margin-bottom: 16px;
}

.sob__item {
  width: calc((100% - (50px * 2))/3);
  min-height: 700px;
}

.sob__item:not(:last-child) {
  margin-right: 50px;
}


.sob__pic {
  flex-shrink: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 298px;

}

.sob__pic img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}



.sob__body {
  border-top: none;
  border: 1px solid var(--bright-gray-more);
  padding-top: 12px;
  padding-left: 48px;
  padding-right: 56px;
  padding-bottom: 40px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
  min-height: 400px;
}

.sob__place {
  display: block;
  width: 145px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16.34px;
  text-align: left;
  color: var(--bright-gray);
  margin-bottom: 14px;
}

.sob__name {
  font-size: 24px;
  font-weight: 600;
  line-height: 32.68px;
  text-align: left;
  color: var(--bright-black);
  margin-bottom: 9px;
}

.sob__descr {
  font-size: 16px;
  font-weight: 400;
  line-height: 32px;
  text-align: left;
  color: var(--bright-black);
}

.sob__link {
  font-size: 16px;
  font-weight: 400;
  line-height: 32px;
  text-align: left;
  color: var(--purple);
  position: relative;
  transition: color .3s, background-color 0.3s;
}

.sob__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 100%;
  height: 1px;
  background-color: var(--purple);
}

.sob__link:focus {
  background-color: var(--purple);
  color: var(--white);
  padding: 0 5px;
}

.sob__link:focus::after {
  background-color: var(--white);
}

.sob__link:hover {
  color: var(--dark-purple);
}

.sob__link:hover::after {
  background-color: var(--dark-purple);
}

.sob__link:active {
  color: var(--bright-black);
  background-color: transparent;
  padding: 0;
}

.sob__link:active::after {
  background-color: var(--bright-black);
}

/* Проекты */

.proj {
  padding-top: 79px;
  padding-bottom: 80px;
}

.proj__title {
  font-size: 48px;
  font-weight: 400;
  line-height: 65.37px;
  text-align: left;
  color: var(--bright-black);
  margin-bottom: 16px;
}

.proj__descr {
  font-size: 16px;
  font-weight: 400;
  line-height: 32px;
  text-align: left;
  color: var(--bright-black);
  max-width: 1060px;
  margin-bottom: 30px;
}

.proj__part {
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  text-align: left;
  color: var(--bright-black);
  margin-bottom: 16px;
}

.proj__logos:not(:last-child) {
  margin-right: 34px;
}

/* Контакты */

.contacts {
  padding-top: 34px;
  padding-bottom: 37px;
  border: 1px solid #CACACA
}

.contacts__con {
  align-items: center;
}

.contacts__left {
  width: 256px;
  margin-right: 79px;
}

.contacts__title {
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  text-align: left;
  color: var(--bright-black);
}

.contacts__address {
  font-size: 16px;
  font-weight: 400;
  line-height: 32px;
  text-align: left;
  color: var(--bright-black);
}

.contacts__form {
  margin-right: auto;
}

.form {
  width: 270px;
  height: 50px;
  border-radius: 100px;
  border: 1px solid var(--bright-black);
  font-size: 16px;
  font-weight: 400;
  line-height: 32px;
  text-align: left;
  color: var(--bright-black);
  margin-right: 16px;
  padding: 5px 23px;
  outline: none;
  transition: border-color .3s, background-color 0.3s;
}

.form:focus {
  background-color: transparent;

}

.form:hover {
  background: #ECECEC;
}

.form:active {
  background: #ECECEC;
}

.contacts__btn {
  border: 2px solid var(--purple);
  padding: 10.5px 34px;
  color: var(--purple);
  border-color: var(--purple);
  font-size: 18px;
  font-weight: 700;
  line-height: 24.51px;
  text-align: center;
  border-radius: 100px;
  transition: outline-color .3s, background-color 0.3s, color .3s;
}

.contacts__btn:focus {
  outline-offset: 3px;
  outline: 2px solid var(--dark-pink);
}

.contacts__btn:hover {
  background-color: var(--purple);
  color: var(--white);
}

.contacts__btn:active {
  background: var(--dark-purple);
  outline: 3px solid var(--pink);
  outline-offset: 0;
  color: var(--white);
  border-color: var(--dark-purple);
}

.visible-on-small {
  display: none;
}

.contacts__links {
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  text-align: left;
  color: var(--bright-black);
  margin-bottom: 6px;
}

.contacts__link {
  display: block;
  width: 40px;
  height: 40px;
  stroke: none;
  transition: opacity 0.3s, stroke 0.3s;
}

.contacts__link:focus {
  opacity: 50%;
}

.contacts__link:hover {
  opacity: 50%;
}

.contacts__link:active {
  opacity: 1;
}

.contacts__link path:active {
  stroke: var(--purple);
}

.contacts__link_wa {
  margin-right: 20px;
}


/* Footer */

.footer {
  background-color: var(--black);
  padding: 48px 0;
}

.footer__logo {
  width: 173px;
  height: 39.9px;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer__wraper {
  justify-content: space-between;
}



.footer__link_vk {
  margin-right: 15px;
}

.footer__link {
  fill: var(--bright-gray-more);
  transition: fill .3s;
}

.footer__link:focus {
  fill: var(--white);
}

.footer__link:hover {
  fill: var(--white);
}

.footer__link:active {
  fill: var(--purple);
}


